//
//  CallPhone.m
//  GFrameWork
//
//  Created by gehaipeng on 14-10-22.
//  Copyright (c) 2014年 Gable. All rights reserved.
//

#import "CallPhone.h"

@implementation CallPhone
+(void)CallPhoneWithPhoneNum:(NSString *)PhoneNum  inView:(UIView *)view
{
    UIWebView *phoneCall;
    NSString *phoneNum = PhoneNum;// 电话号码
    
    NSURL *phoneURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel://%@",phoneNum]];
    //        [[UIApplication sharedApplication] openURL:phoneURL];
    
    phoneCall = [[UIWebView alloc] initWithFrame:CGRectZero];
    
    [phoneCall loadRequest:[NSURLRequest requestWithURL:phoneURL]];
    
    [view addSubview: phoneCall];
}

@end
